package test;

abstract public class Animal {
    private String name;
    private String color;
    public Animal(){
    }
    public Animal(String name,String color){
        this.name = name;
        this.color = color;
    }
    abstract public void eat();
    public void intro(){
        System.out.println("我的名字是：" + name + "，毛发颜色为" + color);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }
}
